﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Nest;

namespace ElasticSearchDemo.Models
{
    [ElasticsearchType(RelationName= "geo_shape", IdProperty ="Id")]
    public class GeoShape
    {
        [Number(NumberType.Long,Name="id")]
        public long Id { get; set; }

        [Keyword(Name="name")]
        public string Name { get; set; }
    
        [GeoShape(Name ="location")]
        public ILineStringGeoShape Location { get; set; }
    }
}
